﻿using Lonewolf.Entity;
using Lonewolf.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lonewolf.IService
{
    public partial interface IMenuInfoService : IBaseService<MenuInfo>
    {
        JsonResult<TopMenuEntity> GetTopMenuList(string userId);
        IQueryable<MenuInfo> GetMenuListByUserId(string userId);
        JsonResult<MenuNavBar> GetLeftMenus(string userId,string Id);
        JsonResult<MenuInfo> GetButtonByUrl(string userId, string url);
        List<TreeSelect> GetModularByUserId(string userId);
        Task<JsonResult<string>> SaveAsync(MenuInfo model, string userId);
        Task<JsonResult<Page<MenuInfo>>> GetPagesAsync(int PageIndex,int PageSize);

    }
}
